package com.hxkj.lts.context;

/**
 * Created by chenwei on 2018/11/21.
 */
public class PagingContextHolder {

    private static final ThreadLocal<Page> localPage = new ThreadLocal<>();

    public static void setPage(Page page) {
        localPage.set(page);
    }

    public static Page getPage() {
        return localPage.get();
    }

    public static void removePage() {
        localPage.remove();
    }

}
